import 'package:json_annotation/json_annotation.dart';

part 'user_login_form_model.g.dart';

@JsonSerializable()
class UserLoginFormModel {
  final String mobile, password;
  final int? socialType;
  final String? socialCode;
  final String? socialState;
  final String? appId;
  final String? parentCardNo;
  final String? promotionCardNo;
  final bool? socialCodeValid;

  UserLoginFormModel({
    required this.mobile,
    required this.password,
    this.socialType,
    this.socialCode,
    this.socialState,
    this.appId,
    this.parentCardNo,
    this.promotionCardNo,
    this.socialCodeValid,
  });

  factory UserLoginFormModel.fromJson(Map<String, dynamic> json) =>
      _$UserLoginFormModelFromJson(json);

  Map<String, dynamic> toJson() => _$UserLoginFormModelToJson(this);
}
